<template>
  <div class="app-container">
    <div v-if="role === 'patient'">
      <el-row :gutter="20">
        <!-- <el-col :span="6" :xs="24">
          <user-card :user="user" />
        </el-col> -->
        <el-col :span="18" :xs="24" name="account">
          <account :user="user" />
        </el-col>
      </el-row>
    </div>
    <div v-else-if="role === 'doctor'">
      <el-row :gutter="20">
        <!-- <el-col :span="6" :xs="24">
          <user-card :user="user" />
        </el-col> -->
        <el-col :span="18" :xs="24" name="accountD">
          <accountD :user="user" />
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import Account from './components/Account'
import AccountD from './components/AccountD'

export default {
  name: 'Profile',
  // components: { UserCard, Activity, Timeline, Account },
  components: { Account, AccountD },
  data() {
    return {
      user: {},
      activeTab: 'activity'
    }
  },
  computed: {
    ...mapGetters([
      'name',
      'avatar',
      'roleSelected'
      // 'roles'
    ]),
    role() {
      return localStorage.getItem('roleSelected')
    }
  },
  created() {
    this.getUser()
  },
  methods: {
    getUser() {}
  }
}
</script>
